package com.isoftstone.service;

import java.util.List;

import com.isoftstone.entity.CK_Prescription;
import com.isoftstone.entity.C_Medicine;
import com.isoftstone.entity.C_Prescription;
import com.isoftstone.entity.Inpesction_item;
import com.isoftstone.entity.Patient;
import com.isoftstone.entity.Register;
import com.isoftstone.entity.W_Medicine;
import com.isoftstone.entity.W_Prescription;

public interface DocService {

	List<Patient> getAllpatient();

	List<C_Medicine> getAllCM();
	
	Patient getpatientById(String guahao_id);

	boolean insertCM(String guahao_id,String cm_id,int cm_num);

	Register getRegisterById(String guahao_id);

	List<C_Prescription> getAllCPById(String guahao_id);

	C_Prescription getCMYizhu(String guahao_id, String cm_id);

	boolean updateCMYizhu(String guahao_id, String cm_id, String cm_yizhu);
	

	List<W_Medicine> getAllWM();

	List<W_Prescription> getAllWPById(String guahao_id);

	boolean insertWM(String guahao_id, String wm_id,int wm_num);

	W_Prescription getWMYizhu(String guahao_id, String wm_id);

	boolean updateWMYizhu(String guahao_id, String wm_id, String wm_yizhu);
	

	boolean deleteCM(String guahao_id, String cm_id);
	boolean deleteWM(String guahao_id, String wm_id);
	boolean deleteCK(String guahao_id, String ck_id);
	
	
	List<Inpesction_item> getAllCK();
	
	boolean insertCK(String guahao_id,String ii_id,int ii_num);
	
	List<CK_Prescription> getAllCKById(String guahao_id);

	CK_Prescription getCKYizhu(String guahao_id, String ck_id);

	boolean updateCKYizhu(String guahao_id, String ck_id, String ck_yizhu);
	
	
	List<C_Medicine> searchCM(String cm_name);
	
	List<W_Medicine> searchWM(String wm_name);
	
	List<Inpesction_item> searchCK(String ii_name);
}
